
package za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Factory;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Model.*;

public class DecoratorFactory 
{

    public static Animal createLegDecorator(Animal animal)
    {
        AnimalDecorater leg = new LegDecorater(animal);
        return leg;
    }

    public static Animal createWingDecorator(Animal animal) 
    {
        AnimalDecorater wing = new WingDecorater(animal);
        return wing;
    }

    public static Animal createGrowlDecorator(Animal animal) 
    {
        AnimalDecorater growl = new GrowlDecorator(animal);
        return growl;
    }
}